package com.sjz.bookmark.tree;

import javax.swing.*;
import java.awt.*;

public class BookmarkToolWindow {
    private JTree bookmarkTree;
    private BookmarkTreeModel treeModel;
    
    public JComponent createToolWindowPanel() {
        // 创建并初始化工具窗口UI
        bookmarkTree = new JTree();
        bookmarkTree.setCellRenderer(new BookmarkTreeCellRenderer());
        
        JPanel panel = new JPanel(new BorderLayout());
        panel.add(new JScrollPane(bookmarkTree), BorderLayout.CENTER);
        return panel;
    }
}